<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<title></title>
<div id="app">
	
<!-- <button>你好啊~靓仔！</button> -->
	<!-- <button>{{name}}</button> -->
<!-- <button @click="hello">{{name}}</button> -->
<button @click="hello" value=1>{{name}}</button>
</div>
		
</head>
	
<body>
<script>
	new Vue({
		el:"#app",
		data:{
			name:"点我打招呼哟~"
		},
		//加个方法 methods
		methods:{
			hello:function(event){
				console.log(event.target.value)
			}	
		}
			/*hello:function(){
				alert("帅哥，你好！")
			}
		}*/
		
	})
</script>
		
</body>
</html>
